package com.yixin.hospital.entity.dto.req.template;

import com.yixin.hospital.entity.bo.TemplateDetail;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel("注册请求体")
public class TemplateAddReqDTO {
    @ApiModelProperty(value = "id", example = "1")
    private Long id;

    @ApiModelProperty(value = "模板名称", example = "模板1")
    @NotNull(message = "模板名称不能为空")
    private String name;

    @ApiModelProperty(value = "科室", example = "1")
    @NotNull(message = "科室不能为空")
    private Long jobOffice;

    @ApiModelProperty(value = "模板详情")
    @NotNull(message = "模板详情不能为空")
    private List<TemplateDetail> templateDetailList;
}
